package com.bawei.coom.model.myapp
import android.app.Application
import android.content.Context
import android.content.SharedPreferences
/**
 * @author : 谢庆平
 * @date   : 2024/10/17 12:08
 * @desc   :数据库
 */
class MyAPP :Application(){
    companion object{
        var userId="1240"
        var token="17303600707131240"
//        var userId=""
//        var token=""
        lateinit var spliter:SharedPreferences
    }
    override fun onCreate() {
        super.onCreate()
         spliter=getSharedPreferences("qiuqiu.db",Context.MODE_PRIVATE)
//         spliter.getString("", userId)
//        spliter.getString("", token)

    }
    public fun delete(key:String){
        spliter.edit().remove(key)
    }
    public fun add(value:String,key:String){
        spliter.edit().putString(value,key)
    }


}